<?php
	class alumno{
		var $bd;
		var $nocontrol;
		var $password;
		var $nombre;
		var $email;
		var $semestre;
		var $idespecialidad;
	
		function alumno($bd){
			$this->bd = $bd;
		}
		
		function set_values($row){
			$this->nocontrol = $row["numcontrol"];
			$this->password = $row["password"];
			$this->nombre = $row["nombre"];
			$this->email = $row["correo"];
			$this->semestre = $row["semestre"];
			$this->idespecialidad = $row["numespecialidad"];
		}
		
		function active_user($nocontrol){
			//realiza la consulta la bd
			$query = "select * from reticula_alumno where numcontrol='$nocontrol'";
			/*
			$result = $this->bd->query($query);
			$row = mysql_fetch_array($result);
			*/
			$this->bd->execute($query);
			$row = $this->bd->getElement();
			$this->set_values($row);
		}
	}
?>
